package cn.tedu.smartos.family_user.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

@Data
@ApiModel(value = "电子围栏操作参数")
public class FenceParam {
    @ApiModelProperty(value = "围栏ID")
    private Long fenceId;

    @NotNull(message = "老人用户ID不能为空")
    @ApiModelProperty(value = "老人用户ID", required = true)
    private Long elderlyUserId;

    @NotNull(message = "家属用户ID不能为空")
    @ApiModelProperty(value = "家属用户ID", required = true)
    private Long familyUserId;

    @ApiModelProperty(value = "围栏名称", required = true)
    private String fenceName;

    @ApiModelProperty(value = "围栏状态：0-禁用,1-启用", required = true)
    private Integer status;

    @NotNull(message = "纬度不能为空")
    @ApiModelProperty(value = "中心点纬度", required = true)
    private Double centerLatitude;

    @NotNull(message = "经度不能为空")
    @ApiModelProperty(value = "中心点经度", required = true, example = "116.405285")
    private Double centerLongitude;

    @NotNull(message = "半径不能为空")
    @Positive(message = "半径必须大于0")
    @ApiModelProperty(value = "围栏半径(米)", required = true, example = "500.0")
    private Double radius;

    @ApiModelProperty(value = "越界报警消息", example = "老人已离开安全区域")
    private String alertMessage;
}